<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/MasterPage.Master" Inherits="System.Web.Mvc.ViewPage<Animoso.Domain.User>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Gebruiker
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<%= Html.ValidationSummary("Beheerder wijzigen mislukt, herstel de fouten en probeer het nogmaals.") %>

<% using (Html.BeginForm("Edit", "Account", FormMethod.Post))
   {%>
    <fieldset>
        <legend>Gebruiker</legend>
        <p>
            <label for="Name">Gebruikersnaam</label><br />
            <%=Html.TextBox("Name", Model.Name)%>
            <%=Html.ValidationMessage("Name", "*")%>
        </p>
        <p>
            <label for="Name">Wachtwoord</label><br />
            <%=Html.Password("Password")%>
            <%=Html.ValidationMessage("Password", "*")%>
        </p>
        <p>
            <label for="Name">Bevestig Wachtwoord</label><br />
            <%=Html.Password("ConfirmPassword")%>
            <%=Html.ValidationMessage("ConfirmPassword", "*")%>
        </p>        
        <p>
            <%=Html.Hidden("Id", Model.Id)%>
            <input type="submit" id="submit" value="OK" />
        </p>
    </fieldset>
    <% } %>
    <div>
        <%=Html.ActionLink("Terug", "Back", new { id = Model.Id}) %>
    </div>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="HeadPlaceHolder" runat="server">
</asp:Content>
